home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / plugins / postproc / dither / r3dither.js next >
Encoding:
JavaScript  |  2005-04-04  |  1.2 KB  |  50 lines

  1.  
  2. // JavaScript wrapper for r3dither.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_DITHERINGREN_H = 1;
  7. include("real/raytr/r3postpr.js")
  8.  
  9.  
  10. var R3CLID_DITHERINGRENDER = 803;
  11.  
  12.  
  13.  
  14.  
  15. R3DITHA_RedBits = 803500;
  16. function SetR3DITHA_RedBits(value) {
  17.   R3Set(this.r3obj, R3DITHA_RedBits, value, R3TID_INTEGER, 0); 
  18. }
  19.  
  20. R3DITHA_GreenBits = 803501;
  21. function SetR3DITHA_GreenBits(value) {
  22.   R3Set(this.r3obj, R3DITHA_GreenBits, value, R3TID_INTEGER, 0); 
  23. }
  24.  
  25. R3DITHA_BlueBits = 803502;
  26. function SetR3DITHA_BlueBits(value) {
  27.   R3Set(this.r3obj, R3DITHA_BlueBits, value, R3TID_INTEGER, 0); 
  28. }
  29.  
  30. R3DITHA_Channel = 803503;
  31. function SetR3DITHA_Channel(value) {
  32.   R3Set(this.r3obj, R3DITHA_Channel, value, R3TID_STRING, 0); 
  33. }
  34.  
  35.  
  36.  
  37. function r3Ditheringrender () { 
  38.    this.base = r3God;
  39.    if(arguments.length) {
  40.       this.base(R3CLID_DITHERINGRENDER, arguments);
  41.    }
  42.    // Attributes
  43.    this.SetRedBits=SetR3DITHA_RedBits;
  44.    this.SetGreenBits=SetR3DITHA_GreenBits;
  45.    this.SetBlueBits=SetR3DITHA_BlueBits;
  46.    this.SetChannel=SetR3DITHA_Channel;
  47. }
  48.  
  49. r3Ditheringrender.prototype=new r3Postprocessor;
  50. // r3dither.h_H